package com.nmrbt.pojo.domain.bi;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * <p>
 * 
 * </p>
 *
 * @author Administrator
 * @since 2019-12-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("export")
public class Export implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = ID, type = IdType.AUTO)
    private Integer id;

    @TableField(USERID)
    private String userId;

    @TableField(FILE_NAME)
    private String fileName;

    @TableField(FILE_URL)
    private String fileUrl;

    /**
     * 0.正在导出,1.导出成功
     */
    @TableField(STATE)
    private Integer state;

    @TableField(CREATE_TIME)
    private Date createTime;


    public static final String ID = "`id`";

    public static final String USERID = "`userId`";

    public static final String FILE_NAME = "`file_name`";

    public static final String FILE_URL = "`file_url`";

    public static final String STATE = "`state`";

    public static final String CREATE_TIME = "`create_time`";


    public static final String ID_COMMENT = "";

    public static final String USERID_COMMENT = "";

    public static final String FILE_NAME_COMMENT = "";

    public static final String FILE_URL_COMMENT = "";

    public static final String STATE_COMMENT = "0.正在导出,1.导出成功";

    public static final String CREATE_TIME_COMMENT = "";



    public static Export of(Object obj) {
        Export e = new Export();
        BeanUtils.copyProperties(obj, e);
        return e;
    }

    public static QueryWrapper<Export> queryWrapper(Object obj) {
        return new QueryWrapper<>(of(obj));
    }

}
